<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<script type="text/javascript">
		function charu(url) {
			var form_post = parent.document.getElementById("content_article_form");
			form_post.value += '<div style="width:100%;text-align:center;"><a href="'+url+'"><img class="sided" width="400px" src="'+url+'"/></a></div>';
		}
		window.onload = function() {
			var blogUrl = parent.document.getElementById('blogurl_iframe').value;
			document.getElementById('upload_file_form').action = (blogUrl+'/admin/new_edit_article.php?action=upload-file');
		}
	</script>
</head><body>
	<?php
	if (isset($insert_id)) {
	?>
	<script type="text/javascript">charu("<?php echo $file_name_url;?>");</script><?php }?>
	<form id="upload_file_form" method="post" enctype="multipart/form-data">
		<div><input size="12" type="file" name="upload_file" id="upload_file_form" />
		<input type="submit" value="上传" /></div>
	</form>
</body></html>
